﻿@{
    ViewBag.Title = "日常练习";
}

<ul id="ul1">
    <li>2020-06-11</li>
    <li>2020-06-12</li>
    <li>2020-06-13</li>
    <li>2020-06-14</li>
</ul>

<script>
    var url = "@Url.Action("Test")";
    $(document).ready(function () {
        $("#ul1 li").each(function (i, ele) {
            $(ele).click(function () {
                link($(this).text());
            });
        });
    });
    function link(date) {
        window.location.href = url + "?date=" + date;
    }
</script>
